<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // var a = 100;

        // function fn(){
        //     var b = 200;
        //     console.log(a);
        // }
        // fn();

        var a = 100;
        function f1(){
            var a = 200;
            function f2(){
                var a = 300;
                function f3(){
                    var a = 400;
                    console.log(a);
                }
                f3();
            }
            f2();
        }
        f1();

    </script>
</body>
</html>